﻿package mortal.game.view.mount.data
{
    import Message.DB.Tables.*;
    import Message.Game.*;
    import mortal.game.resource.tableConfig.*;

    public class ManureCardData extends Object
    {
        private var _sManureCard:SManureCard;
        private var _tMountCard:TMountCardTarget;

        public function ManureCardData(param1)
        {
            if (param1 is SManureCard)
            {
                this.sManureCard = param1;
            }
            else if (param1 is String)
            {
                this.tMountCard = MountConfig.instance.getMountTargetByIdAndLevel(param1);
            }
            return;
        }// end function

        public function set sManureCard(param1:SManureCard) : void
        {
            this._sManureCard = param1;
            this._tMountCard = MountConfig.instance.getMountTargetByIdAndLevel(param1.code + "_" + param1.color * 10);
            return;
        }// end function

        public function get sManureCard() : SManureCard
        {
            return this._sManureCard;
        }// end function

        public function set tMountCard(param1:TMountCardTarget) : void
        {
            this._tMountCard = param1;
            return;
        }// end function

        public function get tMountCard() : TMountCardTarget
        {
            return this._tMountCard;
        }// end function

    }
}
